﻿(function () {
    var FallingZReversed = function (centerX, centerY, color) {
        Class.super(tetris._FallingObject, this, arguments);

        this.center.x = centerX;
        this.center.y = centerY;

        this._relativeBody.push(new tetris.Block(1, 0, color));
        this._relativeBody.push(new tetris.Block(0, 0, color));
        this._relativeBody.push(new tetris.Block(0, 1, color));
        this._relativeBody.push(new tetris.Block(-1, 1, color));

        for (var i = 0; i < this._relativeBody.length; i++) {
            this.getBody.push(new tetris.Block(0, 0, color));
        }
        this._recalculateBody();
    };
    FallingZReversed.inherit(tetris._FallingObject);

    tetris.FallingZReversed = FallingZReversed;
})();